package com.mymvc.controller.vo;

/**
 * @author 王俊彪
 * @version 1.0
 */
public class Product {
    private int pid;
    private String pname;
    private double pice;

    public Product() {
    }

    public Product(int pid, String pname, double pice) {
        this.pid = pid;
        this.pname = pname;
        this.pice = pice;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public double getPice() {
        return pice;
    }

    public void setPice(double pice) {
        this.pice = pice;
    }

    @Override
    public String toString() {
        return "Product{" +
                "pid=" + pid +
                ", pname='" + pname + '\'' +
                ", pice=" + pice +
                '}';
    }
}
